{% extends "../component/_latout.html" %}
{% block style %}
<link href="/public/admin/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">

{% endblock %}
{% block content %}

<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-content">
                    <span class="text-muted small pull-right">共 {{params.totalSize}} 条记录</span>
                    <h2>操作记录</h2>
                    <div class="clients-list">
                        <div class="tab-content">
                            <div class="table-responsive">
                                <table class="table table-striped table-hover">
                                    <thead>
                                        <tr>
                                            <th>
                                                <div class="th-inner "></div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th>
                                                <div class="th-inner ">用户</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th>
                                                <div class="th-inner ">部门</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th>
                                                <div class="th-inner ">最近浏览日期</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th>
                                                <div class="th-inner ">操作次数</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {% for log in list %}
                                        <tr>
                                            <td class="client-avatar">
                                                <img alt="image" src="{{log.user.avatar}}">
                                            </td>
                                            <td>
                                                <a data-toggle="tab" href="#contact-1" class="client-link">{{log.user.real_name}}</a>
                                            </td>
                                            <td>{{log.user.org_node_name}}</td>
                                            <td>{{log.update_time}}</td>
                                            <td>{{log.times}}</td>
                                        </tr>
                                        {% else %}
                                        <tr>
                                            <td colspan="10">
                                                <!--没有数据时的显示-->
                                                <div class="no-data-container">
                                                <i class="fa fa-frown-o"></i>
                                                <span>暂时还没有记录哦~</span>
                                                </div>
                                                <!--/没有数据时的显示-->
                                            </td>
                                        </tr>
                                        {% endfor %}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!--分页-->
                {% include '../component/page.html' %}
                <!--/分页-->
            </div>
        </div>
    </div>
</div>

{% endblock %} 
{% block script %}
<script src="/public/admin/js/common/util/pageBean.js"></script>
{% endblock %}